import post from './base.js'

export const loginReq = data => post('login', data)

export const changePwdReq = (oldPwd, newPwd) => post(`admin/change-pwd`, {
    old_pwd: oldPwd,
    new_pwd: newPwd
})

export const getAsideListReq = () => post(`aside/list`)

export const adminListReq = formData => post('admin/list', formData)

export const adminInfoReq = () => post('admin/info')

export const adminActionReq = formData => post('admin/action', formData)

export const adminDelReq = formData => post('admin/del', formData)

export const adminChargeLogReq = formData => post('admin-charge/list', formData)